'use client';

import React from 'react';
import AppLayout from '@/app/components/AppLayout';
import { menuData } from '@/app/_data/menu-data';

const SettingsLayout: React.FC<{ children: React.ReactNode }> = ({ children }) => {
  const submenus = menuData.find(item => item.id === 'settings')?.submenus || [];

  return <AppLayout submenus={submenus}>{children}</AppLayout>;
};

export default SettingsLayout;
